package com.xncoding.pos.common.enums;

public enum ResultStatusEnum {

    SUCCESS(200, "操作成功!"),

    /**
     * 601,输入不合法!
     */
    INVALID_INPUT(601, " 输入不合法!"),

    /**
     * 602,查询无结果
     */
    NO_RESULT(602, "查询无结果!"),

    METHOD_NOT_ALLOWED(405, "请求方式错误!"),

    /**
     * 603,操作失败
     */
    FAIL(603, "操作失败!"),

    DATA_BASE_ERROR(604, "数据库连接出错!"),

    SERVICE_CLOSE(605, "服务关闭!"),

    /**
     * 606,数据已存在!
     */
    REPEATED_DATA(606, "数据已存在!"),


    CALL_ERROR(607, "调用第三方接口出错!"),

    /**
     * 608,没有权限
     */
    AUTH_ERROR(608, "没有权限"),

    /**
     * 609,数据不可删除或修改!
     */
    CANT_UPDATE(609, "数据不可删除或修改!"),

    FULLMEMBER(610, "群组成员已满!"),

    MQTTPUSHFAIL(612, "MQTT推送失败!"),


    GROUPDISSOLVE(611, "群组已解散!");


    private int status = 200;

    private String message;

    private ResultStatusEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

}
